
package com.xbongbong.admin.model;

import com.xbongbong.admin.domain.entity.RaidersScoreExchangeEntity;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2019-09-18 13:56:16
*/
@Component
public interface RaidersScoreExchangeModel  extends IModel<RaidersScoreExchangeEntity> {

	Integer save(RaidersScoreExchangeEntity entity);

	void insertBatch(List<RaidersScoreExchangeEntity> entityList);

	Integer deleteByKey(Long key, String corpid);

	RaidersScoreExchangeEntity getByKey(Long key, String corpid);

	@Override
	List<RaidersScoreExchangeEntity> findEntitys(Map<String, Object> param);

    @Override
	Integer getEntitysCount(Map<String, Object> param);

    /**
	 * 根据核销码获取实体
	 *
     * @param redeemCode 核销码
     * @return com.xbongbong.admin.domain.entity.RaidersScoreExchangeEntity
     * @author 徐俊杰
     * @date 2019/9/21 17:11
     * @since v1.0
     */
	RaidersScoreExchangeEntity getByRedeemCode(String redeemCode) throws XbbException;


}

